package com.slipper.system.schedule.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.slipper.system.schedule.bo.ScheduleLogBO;
import com.slipper.system.schedule.service.ScheduleLogService;
import com.slipper.util.ResultUtil;

/**
 * 任务调度日志
 */
@RestController
@RequestMapping("/system/scheduleLog")
public class ScheduleLogController {
    @Resource
    private ScheduleLogService scheduleLogService;
    
    @PostMapping("/queryBy")
    public String queryBy(@RequestBody ScheduleLogBO bo) {
        return ResultUtil.successResult(scheduleLogService.queryBy(bo));
    }
    
    @PostMapping("/queryPage")
    public String queryPage(@RequestBody ScheduleLogBO bo) {
        return ResultUtil.successResult(scheduleLogService.queryPage(bo));
    }

    @PostMapping("/delete")
    public String delete(@RequestBody ScheduleLogBO bo) {
        return ResultUtil.successResult(scheduleLogService.delete(bo));
    }
}
